[NTG-context] Re: Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-25 Thread Gerion Entrup
s][dataset=main, numbering=short] \setupbtxlist[aps][ alternative=b, distance=.5em, ] \definebtx[aps:cite:special][aps:cite] \startluacode function render_cite(dataset, tag, righttext) local luadata = publications.datasets[dataset].luadata local entry = luadata[tag] local

[NTG-context] Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-23 Thread Gerion Entrup
ot;[>" .. short .. "]") else context("[" .. short .. "]") end end \stopluacode \definebtx[aps:cite:special][aps:cite] \startsetups btx:aps:cite:special \btxcitereference \ctxlua{render_cite([==[\btxflush{year}]==], [==[\btxflush{

[NTG-context] Enable interaction on custom apa cite variant

2023-08-19 Thread Jethro Djan
[ref.buffer] \usebtxdefinitions[apa] \definebtx [apa:cite:theorem] [apa:cite] \startsetups btx:apa:cite:theorem \btxflushauthorname{author} \btxcomma \btxflush{year} \fastsetup{btx:cite:righttext} \stopsetups \setupenumeration[ before={\blank[medium]}, after={\blank

Re: [NTG-context] error with sbl bibliography on latest LMTX

2022-07-09 Thread Joey McCollum via ntg-context
Sorry, these are definitely errors on my part. The first one ("invalid parent sbl:list:title:unpublished for sbl:list:title:thesis, sbl:list:title:unpublished defined too") was thankfully an easy fix; I just had to move \definebtx[sbl:\s!list:title:unpublished] before \define

Re: [NTG-context] Displaying names in Chicago-Turabian "note" style

2021-12-21 Thread Joey McCollum via ntg-context
to be incorporated into a future ConTeXt update. Regarding the specific features you described: (1) The rules for first name-last name authorconversions and et al. limits for inline citations (i.e., ones in the text/footnotes, but not in the bibliographic list) can be implemented using the general \definebtx

[NTG-context] Displaying names in Chicago-Turabian "note" style

2021-12-21 Thread Joel via ntg-context
0=\hbox{#1\unskip}%         \ifdim\wd0=0pt             #2%         \else             #3%         \fi }% \usebtxdataset[bib.buffer] \startbtxrenderingdefinitions[chicagonum] \definebtx[chicagonum]     [default=default,     specification=chicagonum,     otherstext={\btxspace{\it\btxlabeltext{oth

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Denis Maier via ntg-context
recommended way to solve the problem, and I'm curious about why the more straightforward approach doesn't work. I've added useibid and useidem options for the \definebtx command (making them language-dependent by adding them to mult-def.lua, which seems to be how the other options have been imp

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Joey McCollum via ntg-context
Betreff: [NTG-context] Ibid. and idem support for bibliographies (and > variable scope more generally) > > Hi, > > I've found a way to implement ibid. and idem support in the SBL > specification under development at > https://github.com/jjmccollum/context-sbl (this e-mail essential

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Denis Maier via ntg-context
ts my comments in https://github.com/jjmccollum/context-sbl/issues/5), but I'm not sure if my solution is a recommended way to solve the problem, and I'm curious about why the more straightforward approach doesn't work. I've added useibid and useidem options for the \definebtx command (making t

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Joey McCollum via ntg-context
> specification under development at > https://github.com/jjmccollum/context-sbl (this e-mail essentially > repeats my comments in https://github.com/jjmccollum/context-sbl/issues/5), > but I'm not sure if my solution is a recommended way to solve the problem, > and I'm curious

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-20 Thread Denis Maier via ntg-context
added useibid and useidem options for the \definebtx command (making them language-dependent by adding them to mult-def.lua, which seems to be how the other options have been implemented). Ideally, I'd like to follow the pattern of the chicago:list:sameauthor setup and use a macro similar

[NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-20 Thread Joey McCollum via ntg-context
way to solve the problem, and I'm curious about why the more straightforward approach doesn't work. I've added useibid and useidem options for the \definebtx command (making them language-dependent by adding them to mult-def.lua, which seems to be how the other options have been implemented). Ideally

Re: [NTG-context] Number conversion in btxlist and citations

2021-09-16 Thread kauśika cittūr via ntg-context
On Wednesday, September 15, 2021 8:08:59 PM IST kauśika cittūr wrote: > Dear all, > > I have a simple btx definition 'mylist' for which I have written a simple > publ-imp-mylist.lua and publ-imp-mylist-mkvi. In that latter I have > > ⋮ > \definebtx > [mylist] > [de

Re: [NTG-context] Number conversion in btxlist and citations

2021-09-16 Thread kauśika cittūr via ntg-context
On Wednesday, September 15, 2021 8:08:59 PM IST kauśika cittūr wrote: > Dear all, > > I have a simple btx definition 'mylist' for which I have written a simple > publ-imp-mylist.lua and publ-imp-mylist-mkvi. In that latter I have > > ⋮ > \definebtx > [mylist] > [de

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Joey McCollum via ntg-context
.mkvi (where > it seemed to fit best). But simply specifying > > ``` > \definebtx > [sbl:\s!list:author] > [sbl:\s!list] > [\c!authorconversion=invertedfirst] > ``` > > in my custom rendering file does not access the invertedfirst setup, > regardless of w

Re: [NTG-context] Changing the style of author’s surname in a custom bibliographical style

2021-09-15 Thread Tomáš V via ntg-context
\startbtxrenderingdefinitions[iso690] \definebtx     [iso690]     [     default=default,     specification=iso690,     ] \definebtxrendering     [iso690]     [     specification=iso690,     numbering=yes,     ] \setupbtx[default:list]     [     authorconversion=inverted

[NTG-context] Number conversion in btxlist and citations

2021-09-15 Thread kauśika cittūr via ntg-context
Dear all, I have a simple btx definition 'mylist' for which I have written a simple publ-imp-mylist.lua and publ-imp-mylist-mkvi. In that latter I have ⋮ \definebtx [mylist] [default=default,specification=mylist] \definebtxrendering [mylist] [specification=mylist] \setupbtxlist

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Joey McCollum via ntg-context
Good suggestion! I removed my changes to publ-aut.lua for now and tried adding each of the two setups you described to publ-imp-author.mkvi (where it seemed to fit best). But simply specifying ``` \definebtx [sbl:\s!list:author] [sbl:\s!list] [\c!authorconversion=invertedfirst] ``` in my

[NTG-context] Changing the style of author’s surname in a custom bibliographical style

2021-09-11 Thread Tomáš V via ntg-context
[iso690] \definebtx     [iso690]     [     default=default,     specification=iso690,     ] \definebtxrendering     [iso690]     [     specification=iso690,     numbering=yes,     ] \setupbtx[default:list]     [     authorconversion=inverted,     ] % field definitions

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-27 Thread Joey McCollum via ntg-context
I've been able to implement most of the > features I'm interested in by using conditional formatting with a mode that > is specifically set for citations with the "entry" alternative. I'd also > like for author names in entry citations to be different author names in > list en

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-27 Thread Ágoston Volcz via ntg-context
y using conditional formatting with a mode that >>> is specifically set for citations with the "entry" alternative. I'd also >>> like for author names in entry citations to be different author names in >>> list entries, in the following ways: >>> >&

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-26 Thread Joey McCollum via ntg-context
n issue for >>another e-mail thread, and we can just focus on normal vs. inverted for >>now). >>- In entry citations, "et al." should be used for any names after the >>third name, while in list entries, all names should be printed in full. >> >>

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-26 Thread Joey McCollum via ntg-context
; should be used for any names after the > third name, while in list entries, all names should be printed in full. > > I thought that the following settings would work: > > \definebtx > [sbl:\s!list] > [sbl] > [\c!otherstext=, > \c!etallimit=, > \c!etaldisplay=, >

[NTG-context] Different author rendering in entry citation vs. list

2021-08-25 Thread Joey McCollum via ntg-context
just focus on normal vs. inverted for now). - In entry citations, "et al." should be used for any names after the third name, while in list entries, all names should be printed in full. I thought that the following settings would work: \definebtx [sbl:\s!list] [sbl] [\c!otherst

Re: [NTG-context] Different in-text and list citation renderings

2021-08-10 Thread Joey McCollum via ntg-context
etallimit and etaldisplay parameters are set to the default values: \definebtx [chicago:\s!list] [chicago] %[\c!otherstext={\btxcomma\btxnobreakspace\textellipsis\space}, % \c!etallimit=7, % \c!etaldisplay=6, % \c!etaloption=last, [\c!authorconversion=inverted] But the definition f

Re: [NTG-context] Harvard bibliography style

2021-08-10 Thread Thomas A. Schmitz via ntg-context
021). > The comma is defined in l. 360-7 in publ-imp-apa.mkvi: \definebtx [apa:\s!cite:authoryear] [apa:\s!cite:author] [\c!left={(}, \c!right={)}, \c!inbetween={\btxcomma}, \c!separator:names:3={\btxcomma\textampersand\space}, \c!separator:names:4={\btxspace\textampersand\sp

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread Ágoston Volcz
] \placelistofpublications \stoptext ``` publ-imp-deu.mkvi ``` \startbtxrenderingdefinitions[deu] \definebtx [deu] [default=default, specification=deu] \definebtxrendering [deu] [specification=deu, sorttype={author,title}, numbering=num] \definebtx [deu:list] [deu] \definebtx

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread Alan Braslau
[default][literature.bib] \usebtxdefinitions[deu] \setupbtx[deu] ``` A snippet from the publ-imp-deu.mkvi: ``` \definebtx [deu:list] [deu] [authorconversion=normal] \definebtx [deu:cite] [deu] [authorconversion=normalshort, alternative=authortitle] \startsetups

[NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread Ágoston Volcz
I have: ``` \usebtxdataset[default][literature.bib] \usebtxdefinitions[deu] \setupbtx[deu] ``` A snippet from the publ-imp-deu.mkvi: ``` \definebtx [deu:list] [deu] [authorconversion=normal] \definebtx [deu:cite] [deu] [authorconversion=normalshort, alternative=autho

[NTG-context] Setup left, right, between entries in custom cite of multiple references

2020-06-06 Thread Mike O'Connor
[molarvolume][108-95-2,566-33-5,24599-57-3]\par I simply get the citation details, no separator between, and no left or right. Either of the following works for left= and right=. However inbetween= does not activate, and similarly for separator:2, separator:3, separator:4. \definebtx

[NTG-context] Last names in citations

2020-02-28 Thread Fulvio Satta
Hi, probably my question is not a very hard one but I don't find a way to do what I'm trying to do. If I use \cite[authoryears] ConTeXt uses last names in the citation. That's what I want, but I want to use another style for my task, that I defined this way: \definebtx[aps:cite:margin

Re: [NTG-context] Remove italics from bibliography list

2019-05-17 Thread Henri Menke
\nocite[Tufte:1990:EI:78223] \placelistofpublications[criterium=all] \stoptext On 17/05/19 10:41 PM, Dmitry Starostin wrote: > I tried several variants, but I cannot find where exactly the switch > happens. > > \definebtx[apa:list:title:incollection][apa:list:title][style=]

Re: [NTG-context] Remove italics from bibliography list

2019-05-17 Thread Alan Braslau
On Fri, 17 May 2019 14:10:03 +0200 "Thomas A. Schmitz" wrote: > On 5/17/19 12:41 PM, Dmitry Starostin wrote: > > I tried several variants, but I cannot find where exactly the switch > > happens. > > > > \definebtx[apa:list:title:incollection][a

Re: [NTG-context] Remove italics from bibliography list

2019-05-17 Thread Thomas A. Schmitz
On 5/17/19 12:41 PM, Dmitry Starostin wrote: I tried several variants, but I cannot find where exactly the switch happens. \definebtx[apa:list:title:incollection][apa:list:title][style=] \definebtx[apa:list:title:book][apa:list:title][style=] \definebtx[apa:list:journal][apa:list][style

[NTG-context] Remove italics from bibliography list

2019-05-17 Thread Dmitry Starostin
I tried several variants, but I cannot find where exactly the switch happens. \definebtx[apa:list:title:incollection][apa:list:title][style=] \definebtx[apa:list:title:book][apa:list:title][style=] \definebtx[apa:list:journal][apa:list][style

Re: [NTG-context] Why is [left=(, right=)] ignored when using the aps btx rendering specification?

2018-01-04 Thread Dr . Thomas Möbius
To answer my own question, it must be \usebtxdefinitions[aps] \setupbtxlist [aps] [alternative=b, after=, before=] \definebtx [aps:cite:num] [left={(}, right={)}] \definebtx [aps:list:numbering] [aps:list] [left={(}, right={)}] Am 03.01.2018 um 09:38 schrieb Dr

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-01 Thread Hans Hagen
vi 2017-07-31 21:24:46.860462851 +0200 @@ -58,7 +58,7 @@ \definebtx [aps:\s!list] [aps] - [\c!authorconversion=normalshort] + [\c!authorconversion=normal] \definebtx [aps:\s!list:author] @@ -1117,6 +1117,12 @@ \startsetups btx:aps:list:misc \fastsetup{btx:aps:li

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-07-31 Thread Gerion Entrup
o achive this thing, but I don't know a better one. Here is the patch, if someone is interested. Gerion --- publ-imp-aps.mkvi.original 2017-07-31 21:23:14.736856430 +0200 +++ publ-imp-aps.mkvi 2017-07-31 21:24:46.860462851 +0200 @@ -58,7 +58,7 @@ \definebtx [aps:\s!list] [aps] - [\c!

Re: [NTG-context] How to extend btx rendering?

2016-07-18 Thread Henri Menke
{Normal State of the Metallic Hydrogen Sulfide}, > author = {Kudryashov, Nikolay A. and Kutukov, Alexander A. and > Mazur, Evgeny A.}, > year = {2016}, > eprint = {1607.04624}, > archivePrefix = {arxiv} > } > \stopbuffer > > \usebtxdataset[references.buffer] >

[NTG-context] How to extend btx rendering?

2016-07-18 Thread Henri Menke
\usebtxdataset[references.buffer] \usebtxdefinitions[aps] \definebtx[aps:list:eprint][aps:list][style=\tt] \starttexdefinition unexpanded btx:aps:eprints \btxdoif {eprint} { \btxstartstyleandcolor [aps:list:eprint] \btxdoif {archivePrefix} { \btxflush

Re: [NTG-context] Equivalent of extras option in new bibliography system?

2016-07-03 Thread Thomas A. Schmitz
to have the righttext included within the brackets in authornum styles? So for \cite[righttext={{,\,100}}][Hagen] I want the result to look like Hagen [1, 100]. I tried \definebtx [default:cite:author:num] % todo [default:cite:authornum] [left={\btxleftbracket}, right

Re: [NTG-context] New btx code problem with quote protrusion, redux

2015-10-26 Thread Wolfgang Schuster
ithout a bibliography (\placelistofpublications) You have to change the following definition in publ-imp-default.mkvi: \definebtx [\s!default:\s!list:title:article] [\s!default:\s!list:title] - [\c!style=, % journal is set in italics - \c!command={\quotation\Word}] + [\c!style={\setcharactercas